#include <iostream>
#include <cstdio>
#include <algorithm>

using namespace std;

int main()
{
    freopen("test_1.txt", "r", stdin);
    freopen("test_2.txt", "w", stdout);

    int a[10];
    int i;

    for (i = 0; i < 10; i++)
    {
        cin >> a[i];
    }

    cout << *max_element(a, a + 10);

    return 0;
}
